import { Injectable, OnInit } from '@angular/core';
//import { NgxPermissionsService } from 'ngx-permissions';

@Injectable({
  providedIn: 'root'
})
export class AppPermisionServerService  implements OnInit{

  /*constructor(private permissionsService: NgxPermissionsService) {
    console.log('AppPermisionServerService  constructor');
  }*/
 // private permissionsService: NgxPermissionsService | undefined;
  ngOnInit(): void {
    //throw new Error('Method not implemented.');
    //正常是http加载权限  这里写死
    const perm = ["ADMIN", "EDITOR"];

    // @ts-ignore
    //this.permissionsService.loadPermissions(perm);
    //console.log('初始化权限完成');
  }
}
